/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.inventario.modelo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author ctrosch
 */
@Entity
@Table(name = "USR_TVBUPR")
public class ItemBusquedaPredefinida implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "USR_TVBUPR_ORDEN", nullable = false)
    private Integer orden;
    
    @Column(name = "USR_TVBUPR_DESCRP", length = 40)
    private String descripcion;
            
    @Lob
    @Column(name = "USR_TVBUPR_BUSCA", length = 2147483647)
    private String txtBuscar;
            
    @Lob
    @Column(name = "USR_TVBUPR_PATHIM", length = 2147483647)
    private String pathImagen;    
    
    @Column(name = "USR_TV_FECALT")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecalt;
    @Column(name = "USR_TV_FECMOD")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecmod;
    @Column(name = "USR_TV_USERID", length = 15)
    private String userid;
    @Column(name = "USR_TV_ULTOPR")
    private String ultopr;
    @Column(name = "USR_TV_DEBAJA")
    private String debaja;
    @Column(name = "USR_TV_OALIAS", length = 10)
    private String oalias;

    public ItemBusquedaPredefinida() {

        this.fecalt = new Date();
        this.fecmod = new Date();
        this.userid = "TIVI";
        this.ultopr = "A";
        this.debaja = "N";
        this.oalias = "USR_TVBUPR";        

    }

    public Integer getOrden() {
        return orden;
    }

    public void setOrden(Integer orden) {
        this.orden = orden;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public String getTxtBuscar() {
        return txtBuscar;
    }

    public void setTxtBuscar(String txtBuscar) {
        this.txtBuscar = txtBuscar;
    }

    public String getPathImagen() {
        return pathImagen;
    }

    public void setPathImagen(String pathImagen) {
        this.pathImagen = pathImagen;
    }

    public Date getFecalt() {
        return fecalt;
    }

    public void setFecalt(Date fecalt) {
        this.fecalt = fecalt;
    }

    public Date getFecmod() {
        return fecmod;
    }

    public void setFecmod(Date fecmod) {
        this.fecmod = fecmod;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUltopr() {
        return ultopr;
    }

    public void setUltopr(String ultopr) {
        this.ultopr = ultopr;
    }

    public String getDebaja() {
        return debaja;
    }

    public void setDebaja(String debaja) {
        this.debaja = debaja;
    }

    public String getOalias() {
        return oalias;
    }

    public void setOalias(String oalias) {
        this.oalias = oalias;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 79 * hash + (this.orden != null ? this.orden.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ItemBusquedaPredefinida other = (ItemBusquedaPredefinida) obj;
        if (this.orden != other.orden && (this.orden == null || !this.orden.equals(other.orden))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ItemBusquedaPredefinida{" + "orden=" + orden + '}';
    }
    
}
